package cn.jingyuan.fox.sample.hello.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClassPathXml {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("xml/classPathXml.xml");

        Person xiami = (Person) ctx.getBean("xiami");

        System.out.println("xiami = " + xiami);
    }

}
